package alex.rsx.activity;

import alex.rsx.activity.r.R;
import alex.rsx.http.RsxHttpService;
import android.content.Intent;
import android.os.Bundle;
import android.view.WindowManager;

public class LoaderActivity extends BaseActivity implements Runnable{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_loader);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
        
        Thread thread = new Thread(this);
		thread.start();
    }
    
    @Override
	public void run() {
		// TODO Auto-generated method stub
		Intent intent = new Intent();
		try {
			Thread.sleep(1000);
			
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		intent.setClass(this, MainActivity.class);
		startActivity(intent);
		finish();
	}
}